package com.h3c.ptability.support.event.publisher;

import cn.hutool.extra.spring.SpringUtil;
import com.h3c.ptability.support.event.EventElement;
import com.h3c.ptability.support.event.FillWaitSignEvent;

/**
 * @author chenyifan
 * @date 2022/10/24 15:16
 */
public class FillWaitSignPublisher {


    /**
     * 发布填充WaitSignInfo的recordId字段
     * @param workerId
     * @param sceneType
     * @param recordId
     * @param isCancel
     */
    public static void publishFillWaitSignEvent(String workerId, Integer sceneType, String recordId, String certNo, Boolean isCancel) {
        SpringUtil.publishEvent(new FillWaitSignEvent(EventElement.builder()
                .workerId(workerId)
                .certNo(certNo)
                .recordId(recordId)
                .sceneType(sceneType)
                .isCancel(isCancel)
                .build()));
    }
}
